﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using DOAN.DLL;
using DOAN.Public;

namespace DOAN.BLL
{
    public class ChiTietHoaDonBLL
    {
        ChiTietHoaDonDAL _chiTietHoaDon;

        public ChiTietHoaDonBLL()
        {
            _chiTietHoaDon = new ChiTietHoaDonDAL();
        }

        public DataTable Load()
        {
            return _chiTietHoaDon.Load();
        }

        public int Insert(ChiTietHoaDonPublic p)
        {

            return _chiTietHoaDon.Insert(p);
        }

        public int Update(ChiTietHoaDonPublic p)
        {
            return _chiTietHoaDon.Update(p);
        }

        public int Delete(ChiTietHoaDonPublic p)
        {
            return _chiTietHoaDon.Delete(p);
        }
    }
}
